home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 4
/
Aminet 4 - November 1994.iso
/
aminet
/
comm
/
uucp
/
wcnews_1_0_30.lha
/
notebook
/
ctlmsg.man
< prev
next >
Wrap
Text File
|
1994-01-04
|
3KB
|
67 lines
1mControl22m 1mMessage22m 1mImplementation22m 1min22m 1mC22m 1mNews22m
4mGeoff24m 4mCollyer24m
Department of Statistics
University of Toronto
1mIntroduction22m
Netnews 4mcontrol24m 4mmessages24m are ordinarylooking netnews
articles which contain the special header 1mControl:22m. Such
articles are filed in the pseudonewsgroup 4mcontrol24m and cause
related actions by the local news system, such as mailing a
file to the poster of the control message.
1mBuiltins22m
1mihave22m, 1msendme22m, and 1mcancel22m are handled internally by
4mrelaynews24m, because processes cannot share open 4mdbm24m(3)
databases, there is no standard way to close them, and these
control messages read or write the 4mhistory24m files, including
the 4mdbm24m files. 4mIhave24m and 4msendme24m are also permitted to have
messageid arguments containing 1m<22m and 1m>22m, both of which are
rejected by 4mrelaynews24m in arguments to externallyimplemented
control messages, since they are shell metacharacters (1m/22m and
1m..22m are also bounced) and could be indicative of an attempt
to do something nasty.
1mNormal22m 1mControl22m 1mMessages22m
Most control messages are implemented by 4mrelaynews24m by
executing the command following 1mControl:22m with a search path
of 4m$NEWSCTL/bin:$NEWSBIN/ctl24m and with standard input set to
the control message article. The command inherits the stan
dard news search path and 4mrelaynews24m's user and group ids,
typically 4mnews24m; this can be important to gain access rights
to control files. The news system will be locked (by
4m$NEWSCTL24m/lock) while the command runs, because this is often
important for manipulating control files from the command,
and because the news system is locked while 4mrelaynews24m runs.
If that command returns nonzero exit status, mail is sent
to 4m$NEWSMASTER24m (usually 1musenet22m). Standard output and stan
dard error often are redirected to 4m$NEWSCTL24m/log and
4m$NEWSCTL24m/errlog respectively; invocations of 4mrelaynews24m by
4minews24m are exceptions.